// src/store/ui.ts
import { defineStore } from 'pinia'
import { ref } from 'vue'

export const useUiStore = defineStore('ui', () => {
  const notification = ref<string | null>(null)

  function showNotification(message: string) {
    notification.value = message
    setTimeout(() => {
      notification.value = null
    }, 3000)
  }

  return {
    notification,
    showNotification
  }
})
